package cn.qayy.po;

import java.io.Serializable;
import java.util.Date;

import cn.qayy.dto.BasisDTO;
import cn.qayy.dto.GFDTO;

/***
 * 好伙伴 实体
 * 
 * @author jobs1127
 *
 */
@SuppressWarnings("serial")
public class KdbNssGoodfriend implements Serializable{
    /**客户姓名***/
    private String name;
    /**好伙伴 标识***/
    private String fenzu;
    /**修订标识***/
    private String updateFlag="E";
    /**id***/
    private Integer id;
    
    private Date mtime=new Date();//更新时间
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUpdateFlag() {
		return updateFlag;
	}

	public void setUpdateFlag(String updateFlag) {
		this.updateFlag = updateFlag;
	}

	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getFenzu() {
        return fenzu;
    }

    public void setFenzu(String fenzu) {
        this.fenzu = fenzu == null ? null : fenzu.trim();
    }
    
    public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	/**
	 * 通过DTO初始化
	 * @param dto
	 * @return
	 */
	public KdbNssGoodfriend setByDTO(GFDTO dto) {
		this.setFenzu(dto.getFenzu());
		this.setName(dto.getName());
		return this;
	}

	public KdbNssGoodfriend() {
		super();
	}
}